package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 操作记录对象 records
 *
 * @author ruoyi
 * @date 2021-09-24
 */
public class Records extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 消费id */
    @Excel(name = "消费id")
    private String vipId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String vipName;

    /** 操作人 */
    @Excel(name = "操作人")
    private String userName;

    /** 操作 */
    @Excel(name = "操作")
    private String msg;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setVipId(String vipId)
    {
        this.vipId = vipId;
    }

    public String getVipId()
    {
        return vipId;
    }
    public void setVipName(String vipName)
    {
        this.vipName = vipName;
    }

    public String getVipName()
    {
        return vipName;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setMsg(String msg)
    {
        this.msg = msg;
    }

    public String getMsg()
    {
        return msg;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("vipId", getVipId())
            .append("vipName", getVipName())
            .append("userName", getUserName())
            .append("msg", getMsg())
            .append("time", getTime())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
